package com.qf.service;

import com.qf.dao.ProfileDao;
import com.qf.dao.ProfileDaoImpl;
import com.qf.pojo.Profile;

import java.util.List;

/**
 * @author fy
 * @version V1.0
 * @Project day41
 * @Package com.qf.service
 * @Description:
 * @Date 2022/5/27 13:49
 */
public class ProfileServiceImpl implements ProfileService {
    private ProfileDao profileDao = new ProfileDaoImpl();
    @Override
    public List<Profile> findProfileAll() {
        List<Profile> list = profileDao.findAll();
        return list;
    }

    @Override
    public Profile findProfileById(Integer id) {
        return profileDao.findById(id);
    }
}
